home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / RCS / pwd.h,v < prev    next >
Encoding:
Text File  |  1992-08-05  |  2.9 KB  |  154 lines

  1. head     1.5;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.5
  10. date     92.08.05.13.02.48;  author shirriff;  state Exp;
  11. branches ;
  12. next     1.4;
  13.  
  14. 1.4
  15. date     90.07.16.22.51.30;  author shirriff;  state Exp;
  16. branches ;
  17. next     1.3;
  18.  
  19. 1.3
  20. date     89.06.23.11.30.33;  author rab;  state Exp;
  21. branches ;
  22. next     1.2;
  23.  
  24. 1.2
  25. date     88.06.29.14.58.01;  author ouster;  state Exp;
  26. branches ;
  27. next     1.1;
  28.  
  29. 1.1
  30. date     88.06.26.15.10.59;  author ouster;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @@
  37.  
  38.  
  39. 1.5
  40. log
  41. @Added PASSWORD_LEN
  42. @
  43. text
  44. @/*
  45.  * Copyright (c) 1988 The Regents of the University of California.
  46.  * All rights reserved.
  47.  *
  48.  * Redistribution and use in source and binary forms are permitted
  49.  * provided that the above copyright notice and this paragraph are
  50.  * duplicated in all such forms and that any documentation,
  51.  * advertising materials, and other materials related to such
  52.  * distribution and use acknowledge that the software was developed
  53.  * by the University of California, Berkeley.  The name of the
  54.  * University may not be used to endorse or promote products derived
  55.  * from this software without specific prior written permission.
  56.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  57.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  58.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  59.  *
  60.  *    @@(#)pwd.h    4.3 (Berkeley) 2/22/89
  61.  */
  62.  
  63. #ifndef _PWD
  64. #define _PWD
  65.  
  66. #define    _PATH_PASSWD        "/etc/passwd"
  67. #define    _PATH_MASTERPASSWD    "/etc/master.passwd"
  68. #define    _PATH_MKPASSWD        "/sprite/cmds.$MACHINE/mkpasswd"
  69. #define    _PATH_PTMP        "/etc/ptmp"
  70.  
  71. #define    _PW_KEYBYNAME        '0'
  72. #define    _PW_KEYBYUID        '1'
  73.  
  74. #define _PASSWORD_LEN           128     /* max length, not counting NULL */
  75.  
  76. struct passwd {
  77.     char    *pw_name;            /* user name */
  78.     char    *pw_passwd;            /* encrypted password */
  79.     int    pw_uid;                /* user uid */
  80.     int    pw_gid;                /* user gid */
  81.     long    pw_change;            /* password change time */
  82.     char    *pw_class;            /* user access class */
  83.     char    *pw_gecos;            /* Honeywell login info */
  84.     char    *pw_dir;            /* home directory */
  85.     char    *pw_shell;            /* default shell */
  86.     long    pw_expire;            /* account expiration */
  87. };
  88.  
  89. struct passwd *getpwent(), *getpwuid(), *getpwnam();
  90. void endpwent(), setpwfile();
  91. int setpassent(), setpwent();
  92.  
  93. #endif /* _PWD */
  94. @
  95.  
  96.  
  97. 1.4
  98. log
  99. @Added shadow password stuff.
  100. @
  101. text
  102. @d31 2
  103. @
  104.  
  105.  
  106. 1.3
  107. log
  108. @*** empty log message ***
  109. @
  110. text
  111. @d1 18
  112. a18 3
  113.  /*    pwd.h    4.1    83/05/03    */
  114. /* Taken from 4.3 BSD;  cannot be redistributed except to people with
  115.  * proper AT&T source licenses. */
  116. d23 19
  117. a41 10
  118. struct    passwd { /* see getpwent(3) */
  119.     char    *pw_name;
  120.     char    *pw_passwd;
  121.     int    pw_uid;
  122.     int    pw_gid;
  123.     int    pw_quota;
  124.     char    *pw_comment;
  125.     char    *pw_gecos;
  126.     char    *pw_dir;
  127.     char    *pw_shell;
  128. d45 2
  129. @
  130.  
  131.  
  132. 1.2
  133. log
  134. @Add ifdefs so that file can't be processed twice.
  135. @
  136. text
  137. @d1 1
  138. a1 1
  139. /*    pwd.h    4.1    83/05/03    */
  140. d22 1
  141. a22 1
  142. #endif _PWD
  143. @
  144.  
  145.  
  146. 1.1
  147. log
  148. @Initial revision
  149. @
  150. text
  151. @d5 3
  152. d21 2
  153. @
  154.